<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNotice extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('notice', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title')->comment('公告标题');
            $table->string('content')->comment('公告内容');
            $table->string('community_id')->comment('小区id');
            $table->string('admin_id')->comment('发布人id');
            $table->integer('status')->comment('公告状态|1有效 0删除');
            $table->string('admin_name')->comment('发布人姓名');
            $table->string('admin_position')->comment('发布人职位');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('notice');
    }
}
